package com.java.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java.dao.CompanyDao;
import com.java.model.Company;
import com.java.model.PageBean;
import com.java.service.CompanyService;

@Service("companyService")
public class CompanyServiceImpl implements CompanyService{

	@Resource
	private CompanyDao companyDao;
	
	@Override
	public List<Company> find(PageBean pageBean, Company s_company) {
		return companyDao.find(pageBean, s_company);
	}

	@Override
	public int count(Company s_company) {
		return companyDao.count(s_company);
	}

	@Override
	public void add(Company company) {
		companyDao.add(company);
	}

	@Override
	public void update(Company company) {
		companyDao.update(company);
	}

	@Override
	public void delete(int id) {
		companyDao.delete(id);
	}

	@Override
	public Company loadById(int id) {
		return companyDao.loadById(id);
	}

}
